package com.example.tetstmybatis.controller;

import com.example.tetstmybatis.domain.Score;

import com.example.tetstmybatis.service.ScoreService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("/score")
@RestController
public class   ScoreController {
    @Resource
    private ScoreService ScoreService;
    @GetMapping("/list")
    public List<Score> Scorelistall(){
        return  ScoreService.list();
  }

}
